

import {useRouter,useRoute} from 'vue-router';


export const useCommon =()=>{
    const router=useRouter();

    //跳转页面
    const gotopushwhere=(path)=>{
        router.push(path)
    }

    //替换页面
    const gotoreplacewhere=(path)=>{
        router.replace(path)
    }


    //返回
    const goback = ()=>{
        router.go(-1)
    }

    //密码显示隐藏
 

    return {
        gotopushwhere,
        gotoreplacewhere,
        goback,
    }
}